<script setup lang="ts">

</script>

<template>
<div class="wrap">
  <div class="container">
    <div class="card">
      <h3>现代 Web 布局</h3>
      <figure>
        <img src="https://picsum.photos/300?random=1" alt="">
      </figure>
      <blockquote>
        <svg viewBox="0 0 512 512" width="80" title="quote-left" class="quote-icon">
          <path d="M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z" fill="currentColor"></path>
        </svg>
        <p>Croissant biscuit sweet jelly dolor sprinkles sugar croissant jelly marzipan candy cake cookie croissant pastry croissant marzipan ipsum sprinkles sweet.</p>
      </blockquote>
    </div>
    <div class="card">
      <h3>现代 Web 布局: CSS Grid Layout</h3>
      <figure>
        <img src="https://picsum.photos/300?random=2" alt="">
      </figure>
      <blockquote>
        <svg viewBox="0 0 512 512" width="80" title="quote-left" class="quote-icon">
          <path d="M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z" fill="currentColor"></path>
        </svg>
        <p>Croissant biscuit sweet jelly dolor sprinkles sugar croissant.</p>
      </blockquote>
    </div>
    <div class="card">
      <h3>现代 Web 布局: CSS Flexbox Layout</h3>
      <figure>
        <img src="https://picsum.photos/300?random=3" alt="">
      </figure>
      <blockquote>
        <svg viewBox="0 0 512 512" width="80" title="quote-left" class="quote-icon">
          <path d="M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z" fill="currentColor"></path>
        </svg>
        <p>Jelly cream cookie biscuit pastry lollipop sugar jelly candy ipsum.</p>
      </blockquote>
    </div>
    <div class="card">
      <h3>现代 Web 布局: Grid 布局中的子网格和嵌套网格</h3>
      <figure>
        <img src="https://picsum.photos/300?random=4" alt="">
      </figure>
      <blockquote>
        <svg viewBox="0 0 512 512" width="80" title="quote-left" class="quote-icon">
          <path d="M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z" fill="currentColor"></path>
        </svg>
        <p>Jelly cream cookie biscuit pastry lollipop sugar jelly candy ipsum.</p>
      </blockquote>
    </div>
    <div class="card">
      <h3>flex-grow 和 flex-shrink 如何影响 Flex 项目尺寸</h3>
      <figure>
        <img src="https://picsum.photos/300?random=5" alt="">
      </figure>
      <blockquote>
        <svg viewBox="0 0 512 512" width="80" title="quote-left" class="quote-icon">
          <path d="M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z" fill="currentColor"></path>
        </svg>
        <p>Dolor cake biscuit sweet jelly biscuit cake dolor sweet tiramisu orange dolor cake marzipan pastry marzipan cookie lollipop apple sweet.</p>
      </blockquote>
    </div>
    <div class="card">
      <h3>Flexbxo or Grid: 如何选择合适的布局 </h3>
      <figure>
        <img src="https://picsum.photos/300?random=6" alt="">
      </figure>
      <blockquote>
        <svg viewBox="0 0 512 512" width="80" title="quote-left" class="quote-icon">
          <path d="M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z" fill="currentColor"></path>
        </svg>
        <p>Dolor cake biscuit sweet jelly biscuit cake dolor sweet tir.</p>
      </blockquote>
    </div>
    <div class="card">
      <h3>现代 Web 布局: CSS Flexbox Layout</h3>
      <figure>
        <img src="https://picsum.photos/300?random=8" alt="">
      </figure>
      <blockquote>
        <svg viewBox="0 0 512 512" width="80" title="quote-left" class="quote-icon">
          <path d="M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z" fill="currentColor"></path>
        </svg>
        <p>Jelly cream cookie biscuit pastry lollipop sugar jelly candy ipsum.</p>
      </blockquote>
    </div>
    <div class="card">
      <h3>现代 Web 布局: Grid 布局中的子网格和嵌套网格</h3>
      <figure>
        <img src="https://picsum.photos/300?random=4" alt="">
      </figure>
      <blockquote>
        <svg viewBox="0 0 512 512" width="80" title="quote-left" class="quote-icon">
          <path d="M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z" fill="currentColor"></path>
        </svg>
        <p>Jelly cream cookie biscuit pastry lollipop sugar jelly candy ipsum.</p>
      </blockquote>
    </div>
    <div class="card">
      <h3>flex-grow 和 flex-shrink 如何影响 Flex 项目尺寸</h3>
      <figure>
        <img src="https://picsum.photos/300?random=9" alt="">
      </figure>
      <blockquote>
        <svg viewBox="0 0 512 512" width="80" title="quote-left" class="quote-icon">
          <path d="M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z" fill="currentColor"></path>
        </svg>
        <p>Dolor cake biscuit sweet jelly biscuit cake dolor sweet tiramisu orange dolor cake marzipan pastry marzipan cookie lollipop apple sweet.</p>
      </blockquote>
    </div>
    <div class="card">
      <h3>Flexbxo or Grid: 如何选择合适的布局 </h3>
      <figure>
        <img src="https://picsum.photos/300?random=10" alt="">
      </figure>
      <blockquote>
        <svg viewBox="0 0 512 512" width="80" title="quote-left" class="quote-icon">
          <path d="M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z" fill="currentColor"></path>
        </svg>
        <p>Dolor cake biscuit sweet jelly biscuit cake dolor sweet tir.</p>
      </blockquote>
    </div>
  </div>
</div>
</template>

<style scoped lang="scss">
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.wrap {
  width: 100vw;

















  
  min-height: 100vh;
  font-family: "Exo", "bungee Shade", cursive, Arial, sans-serif;
  background-color: #557;
  color: #fff;
  .container {
    width: 100vw;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100% - 2rem, 300px), 1fr));
    gap: 1rem;
    padding: 1rem;

    .card {
      grid-row: span 3;
      display: inherit;
      grid-template-rows: subgrid;
      gap: 0;

      background-color: #fff;
      border-radius: 8px;
      color: #444;

      & > *:not(figure){
        padding: 0.5em 1em;
        line-height: 1.65;
      }

      h3 {
        font-size: clamp(1rem, 1.5vw + 1.25rem, 1.5rem);
      }

      figure {
        margin: 0;
        padding: 0;

        img {
          display: block;
          width: 100%;
          aspect-ratio: 16 / 9;
          object-fit: cover;
          object-position: center;
        }
      }
      blockquote {
        background-color: #7a8897;
        border-radius: 0 0 8px 8px;
        line-height: 1.6;
        font-style: italic;
        font-size: 0.625em;
        color: #fff;
        padding: 1.25em 1.5em !important;

        p {
          color: #fff;
          font-size: 1em;
        }
      }

      svg {
        width: 1em;
        height: 1em;
      }

    }
  }
}
</style>
